package zlatan_demo11_foreach

object ClassDemo01 {
  def main(args: Array[String]): Unit = {
    val list1=List(1,2,3,4)
     list1.foreach((i:Int) =>println(i))
    //简写
    println("*"*20)
    list1.foreach(i=>println(i))
  }

}
